package com.siysoft.tc.base.bean.to;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * The persistent class for the db_teacher database table.
 * 
 */
@Entity
@Table(name="db_teacher")
public class Teacher implements Serializable {
	private static final long serialVersionUID = 1L;
	private int teacherId;
	private int teacherAge;
	private String teacherName;
	private String teacherSex;
	private String teacherStatus;
	private int userId;

	public Teacher() {
	}
	/**
	 * 构造函数用于注册老师
	 * @param age
	 * @param realname
	 * @param sex
	 */
	public Teacher(int userId,int age,String realname,String sex){
		
		this.teacherAge=age;
		this.teacherName=realname;
		this.teacherSex=sex;
		this.teacherStatus="0";
		this.userId=userId;
		
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="teacher_id")
	public int getTeacherId() {
		return this.teacherId;
	}

	public void setTeacherId(int teacherId) {
		this.teacherId = teacherId;
	}


	@Column(name="teacher_age")
	public int getTeacherAge() {
		return this.teacherAge;
	}

	public void setTeacherAge(int teacherAge) {
		this.teacherAge = teacherAge;
	}


	@Column(name="teacher_name")
	public String getTeacherName() {
		return this.teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}


	@Column(name="teacher_sex")
	public String getTeacherSex() {
		return this.teacherSex;
	}

	public void setTeacherSex(String teacherSex) {
		this.teacherSex = teacherSex;
	}


	@Column(name="teacher_status")
	public String getTeacherStatus() {
		return this.teacherStatus;
	}

	public void setTeacherStatus(String teacherStatus) {
		this.teacherStatus = teacherStatus;
	}


	@Column(name="user_id")
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

}